/*
 *  KothConstants.h
 *  wolf3d
 *
 *  Created by James Weatherley on 10/12/2009.
 *  Copyright 2009 James Weatherley. All rights reserved.
 *
 */

// Set the values to their defaults.
// They 'contants' are 'mostly' constant. 
// They shouldn't need changing, but hacking around in the console will update the values.

typedef enum JWSwipeMode
{
	JWSwipeLandscape,
	JWSwipeCamera
} JWSwipeMode;

void initKothConstants();

// Sentinels' field of view in degrees.
extern float kothSentinelFOV;

// Degrees to warn the player a sentinel is getting close.
extern float kothSentinelWarning;

// How fast do the sentinels rotate?
extern float kothSentinelRotationSpeed;

// How many seconds between each absorbtion by a particular sentinel.
extern float kothSentinelAbsorbRate;

// How fast do the meanies rotate?
extern float kothMeanieRotationSpeed;

// What fraction of the empty squares have trees?
// A value of 10 means one in ten squares will have a tree.
extern unsigned int kothTreeFraction;

// Is the control scheme using the virtual joystick?
extern int kothVirtualJoystick;

// How sensitive is player movement to swiping?
extern float kothSwipeSensitivity;

// Do swipes drag the landscpae or move the camera?
extern JWSwipeMode kothSwipeMode;

// Do we want to invert the effect of swiping in thre y-axis?
extern int kothInvertY;

// How close do trees have to be for meanie conversion?
extern unsigned int kothMeanieRange;

// Create a meanie if we're closer than kothMeanieAngle degrees to the player.
extern float kothMeanieAngle;

// How high can the player look?
extern float kothPlayerMaxAzimuth;

// How low can the player look?
extern float kothPlayerMinAzimuth;

// If this is 1 we draw every frame.
// If it's 2 we draw every other frame,
// etc.
extern unsigned int kothFrameInterval;